<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/table_data_tables.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:01 GMT -->

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>公众号列表</title>

    <link rel="shortcut icon" href="favicon.ico">
    <link href="__PUBLIC__/dist/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/switchery/switchery.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="tabs-container">
                    <ul class="nav nav-tabs">
                        <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">公众号信息</a></li>
                        <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">商家信息</a></li>
                    </ul>
                    <form id="myform" role="form" class="form-horizontal" method="post">
                        <div class="tab-content">
                            <!--通用信息-->
                            <div id="tab-1" class="tab-pane active">
                                <div class="panel-body">
                                    <div class="form-group draggable ui-draggable">
                                        <label class="col-sm-2 control-label">名称：</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" id="name" name="name" value="{$info.name}"
                                                placeholder="请输入名称" required>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group draggable ui-draggable">
                                        <label class="col-sm-2 control-label">公众号ID：</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" id="originalid" name="originalid"
                                                value="{$info.originalid}" placeholder="请输入公众号ID">
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group draggable ui-draggable">
                                        <label class="col-sm-2 control-label">微信号：</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" id="wxcode" name="wxcode" value="{$info.wxcode}"
                                                placeholder="请输入微信号">
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group draggable ui-draggable">
                                        <label class="col-sm-2 control-label">AppID：</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" id="appid" name="appid" value="{$info.appid}"
                                                placeholder="请输入AppID" required>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group draggable ui-draggable">
                                        <label class="col-sm-2 control-label">AppSecret：</label>
                                        <div class="col-sm-10">
                                            <input type="password" class="form-control" id="appsecret" name="appsecret"
                                                value="{$info.appsecret}" placeholder="请输入AppSecret">
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group draggable ui-draggable">
                                        <label class="col-sm-2 control-label">Token：</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" id="token" name="token" value="{$info.token}"
                                                placeholder="请输入Token：">
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group draggable ui-draggable">
                                        <label class="col-sm-2 control-label">排序号：</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" id="sort_id" name="sort_id" value="{$info.sort_id}"
                                                placeholder="请输入排序号">
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">内容推送：</label>
                                        <div class="col-sm-2">
                                            <input type="checkbox" class="js-switch" name="is_push" value="1" {if
                                                condition="$info['is_push'] eq 1 or $info['is_push'] eq null" }checked{/if} />
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group draggable ui-draggable">
                                        <div class="col-sm-12 col-sm-offset-3">
                                            <input type="hidden" name="id" value="{$info.id}">
                                            <button class="btn btn-primary" type="submit">确定</button>
                                            <button class="btn btn-white" type="button" onclick="javascript:history.go(-1);">取消</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!--商家信息-->
                            <div id="tab-2" class="tab-pane">
                                <div class="panel-body">
                                    <div class="form-group draggable ui-draggable">
                                        <label class="col-sm-2 control-label">商家名称：</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" id="mchname" name="mchname" value="{$info.mchname}"
                                                placeholder="请输入商家名称">
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group draggable ui-draggable">
                                        <label class="col-sm-2 control-label">商家号：</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" id="mchid" name="mchid" value="{$info.mchid}"
                                                placeholder="请输入商家号">
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group draggable ui-draggable">
                                        <label class="col-sm-2 control-label">支付秘钥：</label>
                                        <div class="col-sm-10">
                                            <input type="password" class="form-control" id="mchkey" name="mchkey" value="{$info.mchkey}"
                                                placeholder="请输入支付秘钥">
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group draggable ui-draggable">
                                        <label class="col-sm-2 control-label">域名：</label>
                                        <div class="col-sm-10">
                                            <input type="text" class="form-control" id="web_url" name="web_url" value="{$info.web_url}"
                                                placeholder="请输入域名">
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">Logo：</label>
                                        <div class="col-sm-5" id="file-pretty">
                                            <div class="input-append input-group">
                                                <span class="input-group-btn">
                                                    <button class="btn btn-white" type="button" onclick="GetUploadify(1,'','store','call_back');">选择文件</button>
                                                </span>
                                                <input class="input-large form-control" id="original_img_input" type="text"
                                                    name="logo_url" value="{$info.logo_url}">
                                            </div>
                                        </div>
                                        <div class="col-sm-3" id="original_img" style="position: relative;">
                                            {if condition="$info['logo_url']"}
                                            <img src="{$info.logo_url}" alt="" class="goods-image" style="height:34px">
                                            <div style="position:absolute;bottom:0;left:65px;display:none;border: 1px solid #ccc;"><img
                                                    src="{$info.logo_url}" alt="" style="max-width: 500px;z-index: 999"></div>
                                            {/if}
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group draggable ui-draggable">
                                        <div class="col-sm-12 col-sm-offset-3">
                                            <input type="hidden" name="id" value="{$info.id}">
                                            <button class="btn btn-primary" type="submit">确定</button>
                                            <button class="btn btn-white" type="button" onclick="javascript:history.go(-1);">取消</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
    <script src="__PUBLIC__/dist/js/jquery.min.js?v=2.1.4"></script>
    <script src="__PUBLIC__/dist/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__PUBLIC__/dist/js/plugins/jeditable/jquery.jeditable.js"></script>
    <script src="__PUBLIC__/dist/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="__PUBLIC__/dist/js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="__PUBLIC__/dist/js/content.min.js?v=1.0.0">
    </script>
    <script src="http://static.runoob.com/assets/jquery-validation-1.14.0/lib/jquery.js"></script>
    <script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
    <script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/localization/messages_zh.js"></script>
    <script src="__PUBLIC__/dist/js/plugins/switchery/switchery.js"></script>
    <script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/global.js?rnd=12345678"> </script>

    <script>
        new Switchery(document.querySelector('.js-switch'));
        /*
         * 以下是图片上传方法
         */
        // 上传服务图片成功回调函数
        function call_back(fileurl_tmp) {
            $("#original_img").html('<img src="' + fileurl_tmp + '" alt="" style="height:34px">');
            $('#original_img_input').val(fileurl_tmp);
        }
        $().ready(function () {
            // 在键盘按下并释放及提交后验证提交表单
            $("#myform").validate({
                rules: {
                    name: {
                        required: true,
                        rangelength: [2, 32]
                    },
                    appid: {
                        required: true,
                        rangelength: [6, 32]
                    }
                },
                messages: {
                    name: {
                        required: "请输入名称",
                        rangelength: "名称长度不能小于 2 个字母"
                    },
                    appid: {
                        required: "请输入AppID",
                        rangelength: "AppID长度不能小于 6 个字母"
                    }
                }, submitHandler: function (form) {
                    form.submit();
                }
            })
        });
    </script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/table_data_tables.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:02 GMT -->

</html>